
<template>
	<div>
		
		<a-row>
			
			<a-col span="2"> 请输入需要点击的元素的定位符: </a-col>
			<a-col span="12">
				<a-input  v-model:value="props.componentConfig.cssSelector" />
			</a-col>
		</a-row>
	</div>
</template>

<script setup>
import { onMounted, ref, watch, toRaw, inject, getCurrentInstance } from 'vue'
import { Message, Radio, Row, Switch } from 'view-ui-plus'
import processVersionContentApi from '@/api/process/processVersionContentApi'

const props = defineProps(['componentConfig', 'nodeId', 'id', 'frontFile'])

const defaultConfig = () => {
	return {
		cssSelector:""
	}
}

onMounted(async () => {
	if (!hasProperties(props.componentConfig)) {
		const c = defaultConfig()
		props.componentConfig.cssSelector = c.cssSelector
	}
})

const hasProperties = (obj) => {
	if (!obj) {
		return false
	}

	return JSON.stringify(obj) != '{}'
}
</script>

<style scoped></style>
